home *** CD-ROM | disk | FTP | other *** search
/ E.M.Computergraphic Phase 4 / Phase 4 - Desktop Video Dreams (E. M. Computergraphic)(1996).iso / utilities / videotitler / install < prev    next >
Text File  |  1996-01-02  |  7KB  |  273 lines

  1. ; Installer installation script for VideoTitler
  2. ; $VER:Install Videotitler 20.10 (23.01.95)
  3.  
  4.  
  5.  
  6. (set @default-dest "")
  7. (set vttdir "VTT1:Videotitler/")
  8. (set vttsource "")
  9.  
  10. ;================================================================================
  11. ; English strings
  12.  
  13. (set #bad-kick
  14.         (cat "\nYou must have installed Kickstart 2.04 or higher to use VideoTitler!")
  15. )
  16.  
  17. (set #welcome
  18.         (cat "\nVideoTitler installation\n\n\n"
  19.              "This script installs VideoTitler V2.0\n"
  20.              "on your Amiga.\n\n\n\n"
  21.              "VideoTitler V2.0 ©1995 by Andreas Ackermann\n"
  22.              "All rights reserved\n\n"
  23.              "(MUI-System © by Stefan Stuntz)")
  24. )
  25.  
  26. (set #where-vtt
  27.         (cat "\nIn wich drawer should the VideoTitler be \n"
  28.               "installed ? (A new drawer named\n"
  29.               "VideoTitler will be generated there.)\n"
  30.         )
  31. )
  32.  
  33. (set #icon_type
  34.         (cat "\nWhich type of icons do you want to install ?\n")
  35. )
  36.  
  37. (set #which-language
  38.         (cat "\nWhich language should be installed?\n")
  39. )
  40. (set #which-language-help
  41.         (cat "\nThe Amiga can be operated in many different languages. "
  42.              "If you want VideoTitler to use the same language as the Amiga "
  43.              "Workbench a catalog file must be copied to your harddisk "
  44.              "for each language supported.\n"
  45.         )
  46. )
  47. (set #exit_string
  48.         (cat "Please install the provided MUI-package\n"
  49.              "which is to be found on disk two as well.\n\n"
  50.              "Have fun using VideoTtitler !\n"
  51.         )
  52. )
  53.  
  54. (set #askfont
  55.         (cat "\nDo you want to install the supplied\n"
  56.              "fonts as well ?\n"
  57.         )
  58. )
  59. (set #fonthelp
  60.         (cat "\nSpecifying 'yes' makes the installer copy the fonts\n"
  61.              "to your FONTS: directory.\n"
  62.         )
  63. )
  64.  
  65. ;================================================================================
  66. ; make sure we are running under a 2.04 ROM
  67.  
  68.  
  69. (if (< (/ (getversion) 65536) 37)
  70.   (
  71.     (abort #bad-kick)
  72.   )
  73. )
  74.  
  75.  
  76. (if (< (/ (getversion) 65536) 39)
  77.   (SET guide_tool "sys:utilities/amigaguide" )
  78.   (SET guide_tool "sys:utilities/multiview" )
  79. )
  80. (if (< (/ (getversion) 65536) 38)
  81.   (SET guide_tool "sys:utilities/more" )
  82. )
  83.  
  84.  
  85. ;================================================================================
  86. ;
  87.  
  88. (complete 0)
  89.  
  90. (message #welcome)
  91.  
  92. (welcome)
  93. (set old_level @user-level)
  94.  
  95. (set vttdir
  96.         (askdir
  97.                 (prompt #where-vtt)
  98.                 (help @askdir-help)
  99.                 (default "RAM:")
  100.         )
  101. )
  102.  
  103.  
  104.  
  105.  
  106. (set iconsource
  107.         (ASKCHOICE
  108.                 (PROMPT #icon_type)
  109.                 (CHOICES
  110.                          "Standard"
  111.                          "MagicWB")
  112.                 (DEFAULT 0)
  113.                 (HELP @askchoice-help)
  114.         )
  115. )
  116.  
  117. (if     (= iconsource 1 )
  118.         ( SET iconsource "magicwb" )
  119.         ( SET iconsource "standard" )
  120. )
  121.  
  122.  
  123. (MAKEDIR  (TACKON vttdir "VideoTitler"))
  124. (COPYFILES(
  125.           (SOURCE (CAT vttsource "icons/" iconsource "/VideoTitler_drawer.info"))
  126.           (DEST vttdir)
  127.           (NEWNAME "VideoTitler.info")
  128.           ))
  129. (SET vttdir_dummy (TACKON vttdir "VideoTitler"))
  130. (SET vttdir vttdir_dummy)
  131.  
  132. (complete 10)
  133. (copyfiles
  134.         (source (CAT vttsource "Videotitler"))
  135.         (dest vttdir)
  136. )
  137.  
  138. (copyfiles
  139.         (source (cat vttsource "icons/" iconsource "/VideoTitler.info"))
  140.         (dest vttdir)
  141.         (noposition)
  142. )
  143.  
  144.  
  145. (complete 30)
  146.  
  147.  
  148. (MAKEDIR  (TACKON vttdir "scripts"))
  149. (COPYFILES(
  150.           (SOURCE (CAT vttsource "icons/" iconsource  "/scripts.info"))
  151.           (DEST vttdir )
  152.           ))
  153. (MAKEDIR  (TACKON vttdir "icons"))
  154. (MAKEDIR  (TACKON vttdir "anims"))
  155. (COPYFILES(
  156.           (SOURCE (CAT vttsource "icons/" iconsource "/Anims.info"))
  157.           (DEST vttdir )
  158.           ))
  159. (MAKEDIR  (TACKON vttdir "brushes"))
  160. (COPYFILES(
  161.           (SOURCE (CAT vttsource "icons/" iconsource "/Brushes.info"))
  162.           (DEST vttdir )
  163.           ))
  164. (copyfiles
  165.         (source (cat vttsource "icons/" iconsource "/videotitler_project.info"))
  166.         (dest (TACKON vttdir "icons"))
  167.         (noposition)
  168. )
  169.  
  170. (copyfiles
  171.         (source (cat vttsource "icons/" iconsource "/videotitler_iconification.info"))
  172.         (dest (TACKON vttdir "icons"))
  173.         (noposition)
  174. )
  175.  
  176. (TOOLTYPE (DEST (TACKON vttdir "icons/videotitler_project"))
  177.           (SETDEFAULTTOOL (TACKON  vttdir "VideoTitler"))
  178.           (NOPOSITION)
  179.           )
  180.  
  181. (FOREACH (CAT vttsource "scripts") "#?.vtt"
  182.           (COPYFILES(
  183.                      (SOURCE (TACKON (CAT vttsource "scripts") @each-name))
  184.                      (DEST (TACKON  vttdir "scripts"))
  185.                      )
  186.           )
  187.           (COPYFILES(
  188.                      (SOURCE (TACKON vttdir "icons/videotitler_project.info"))
  189.                      (DEST (TACKON  vttdir "scripts"))
  190.                      (NEWNAME (CAT @each-name ".info"))
  191.                      )
  192.           )
  193. )
  194.  
  195. (complete 40)
  196. (FOREACH (CAT vttsource "anims") "#?"
  197.           (COPYFILES(
  198.                      (SOURCE (TACKON (CAT vttsource "anims") @each-name))
  199.                      (DEST (TACKON  vttdir "anims"))
  200.                      )
  201.           )
  202. )
  203. (complete 70)
  204.  
  205. (FOREACH (CAT vttsource "brushes") "#?"
  206.           (COPYFILES(
  207.                      (SOURCE (TACKON (CAT vttsource "brushes") @each-name))
  208.                      (DEST (TACKON  vttdir "brushes"))
  209.                      )
  210.           )
  211. )
  212. (complete 90)
  213.  
  214. (user 2)
  215. (set lang
  216. (askchoice
  217.          (prompt #which-language)
  218.          (help #which-language-help @askoptions-help)
  219.          (choices
  220.                  "English"
  221.                  "Deutsch")
  222.          )
  223. )
  224. (user old_level)
  225. (if( = lang 1 ) (SET language "deutsch" ) (SET language "english"))
  226.  
  227. (if (EXISTS("SYS:LOCALE") )
  228.     (if (<> language "english")
  229.            (
  230.                (makedir (TACKON vttdir "catalogs" ))
  231.                (makedir (TACKON vttdir (cat "catalogs/" language)))
  232.                (copyfiles (SOURCE (cat vttsource "catalogs/" language))
  233.                           (DEST (TACKON vttdir (cat "catalogs/" language)))
  234.                (all))
  235.            )
  236.     )
  237. )
  238.  
  239. (copyfiles
  240.         (source (cat vttsource "docs/videotitler_" language ".guide"))
  241.         (dest vttdir)
  242.         (NEWNAME "VideoTitler.guide")
  243. )
  244. (copyfiles
  245.         (source (cat vttsource "icons/" iconsource "/guide.info"))
  246.         (dest vttdir)
  247.         (NEWNAME "VideoTitler.guide.info")
  248. )
  249. (TOOLTYPE (DEST (TACKON vttdir "VideoTitler.guide"))
  250.           (SETDEFAULTTOOL guide_tool )
  251.           )
  252.  
  253. (if(=
  254.  (ASKBOOL
  255.         ( PROMPT #askfont )
  256.         ( HELP #fonthelp )
  257.         ( DEFAULT 0 )
  258.  )
  259.  1 )
  260.  (copyfiles
  261.         (source (CAT vttsource "fonts"))
  262.         (dest "Fonts:")
  263.         (ALL)
  264.  )
  265. )
  266.  
  267. (complete 100)
  268. (exit #exit_string )
  269.  
  270.  
  271.  
  272.  
  273.